JavaScript

A5.ViewBoxsetState Method

Syntax

A5.ViewBox.setState(state)

Arguments

stateobject

The new state information.

Description

Merge passed in state information with the previously existing state information. This will not refresh the view box, so if the state information is used in the layout, then a A5.ViewBox.refresh must also be done.

Example

// To get a pointer to the A5.ViewBox class see {dialog.object}.getControl
// assume vbObj is a pointer to an instance of the A5.ViewBox class
var state = {user: 'Fred Smith', currentTab: 1};
vbObj.setState(state);
vbObj.refresh();